import React from "react";
import "./App.css";

import { BrowserRouter, Route, Switch, Redirect} from 'react-router-dom';
// 导入semantic-ui-css
import 'semantic-ui-css/semantic.min.css'

// 导入登陆页
import Login from './Login.js';

function App() {
  return (
    <BrowserRouter>
      {/*配置路由映射*/}
      
        <Switch>
          <Route path='/login' component={ Login }/>
          <Redirect from="/" to="/login" />
        </Switch>       
    </BrowserRouter>
  );
}

export default App;
